<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WIKINDX CLASS DOCUMENTATION</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX METHODS</h2>
<p><strong>Method:</strong><br />
  
  grabAll()
</p>
<p><strong>Class:</strong><br />

  <a href="publisherClass.html">PUBLISHER</a>
<p><strong>Method Call:</strong><br />
  include_once("core/publisher/PUBLISHER.php");<br />
$publisher = new PUBLISHER($this-&gt;db);<br />
ASSOC. ARRAY $collection->grabAll([STRING: $publisherType = FALSE, INT: $userBibliographyId = FALSE]); </p>
<p><strong>Description:</strong><br />
  Returns an associative array of all the publishers in the WIKINDX database  suitable for use with a HTML form select box. If <em>$publisherType</em> is supplied, the list of publishers is limited to publishers of a particular type (see <em>core/publisher/PUBLISHERMAP.php</em>). If <em>$userBibliographyId</em> is supplied, the list of publishers is limited to publishers from resources within that user bibliography. If both limitations are supplied, both will be applied.

<p><strong>Usage:</strong>
<pre>
	include_once("core/publisher/PUBLISHER.php");
	$publisher = new PUBLISHER($this->db);
	$userBibId = $session->getVar("mywikindx_bibliography_use");
	$publisherArray = $publisher->grabAll('book', $userBibId);
	$publisherArray will be something like:

	array(
			'50'		=>		'MacMillan: London',
			'48'		=>		'Vanity Publishers Inc.: Monrovia',
			'321'		=>		'MacMillan: New York',
		);
</pre>
The keys of the arrays are the ID numbers in the database table <em>WKX_publisher</em> and are the IDs that are inserted in the <em>publisher</em> field in <em>WKX_resource_misc</em>. 
<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>

</html>
